#ifndef SETTING_H
#define SETTING_H

#include <QDialog>
#include <QSerialPort>
namespace Ui {
class Setting;
}

class Setting : public QDialog
{
    Q_OBJECT
public:
    struct SetInfo{
        QString portName;
        QSerialPort::BaudRate bardrate;
        QSerialPort::Parity parity;
    };
public:
    explicit Setting(SetInfo* set, QWidget *parent = 0);
    ~Setting();

private slots:
    void on_buttonBox_accepted();

private:
    Ui::Setting *ui;
    SetInfo *m_set;
};

#endif // SETTING_H
